<extend name="template/base_index" />

<block name="area_header">

</block>

<block name="area_body">
    {:W('Menus/topbar')}
    <div class="admin-main container-fluid">
        {:W('Menus/left')}
        <div class="admin-main-content">
            {:W('Menus/breadcrumb')}
            <div class="table-responsive well">
                <!-- 过滤\查询按钮 -->
                <div class="filter-controls">
                    <form action="{:U('Admin/School/search_student')}" class="memberForm form-inline" method="post">
                        <div class="form-group">
                            <label class="control-label">学生姓名</label>
                            <div class="input-group">
                                <input class="form-control" type="text" name="nickname" placeholder="请输入学生姓名" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label">&nbsp;</label>
                            <div class="input-group">
                                <button type="submit" class="btn btn-primary btn-sm"><i class="fa fa-search"></i>查询</button>
                            </div>
                        </div>
                    </form>
                </div>

                <table class="table table-striped table table-hover  table-condensed">
                    <thead>
                    <tr>
                        <th style="width:40px;">
                            <input type="checkbox" class="selectall" onclick="myUtils.selectall(this,'.selectitem');" />
                        </th>
                        <th>
                            ID
                        </th>
                        <th>
                            学生姓名
                        </th>
                        <th>
                            邮箱
                        </th>
                        <th>
                            注册时间
                        </th>

                        <th>
                            {:L('OPERATOR')}
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    <empty name="list">
                        <tr>
                            <td colspan="8" class="text-center">{:L('NO_DATA')}</td>
                        </tr>
                        <else/>
                        <volist name="list" id="vo">
                            <tr>
                                <td>
                                    <input type="checkbox" value="{$vo.id}" name="ids[]" class="selectitem" /></td>

                                <td>
                                    {$vo.id}</td>
                                <td>
                                    <a href="{:U('Admin/School/view',array('id'=>$vo['id']))}">{$vo.nickname|default='未知昵称'}</a></td>
                                <td>
                                    {$vo.email}</td>
                                <td>
                                    {$vo.reg_time|date='Y-m-d',###}</td>
                                <td>
                                    <a href="{:U('Admin/School/ban_student',array('id'=>$vo['id']))}" class="btn btn-danger btn-sm ajax-get confirm" ><i class="fa fa-trash-o"></i> {:L('BTN_DELETE')}</a>
                                    <a href="{:U('Admin/School/edit_student',array('id'=>$vo['id']))}" class="btn btn-danger btn-sm" ><i class="fa fa-minus-circle"></i> 编辑</a>
                                    <empty name="vo['rid']"><a href="{:U('Admin/School/add_resume',array('id'=>$vo['id'],'name'=>$vo['nickname']))}" class="btn btn-info btn-sm" ><i class="fa fa-plus-circle"></i> 添加简历</a></empty>
                                    <notempty name="vo['rid']">
                                        <a href="{:U('Admin/School/edit_resume',array('id'=>$vo['id'],'name'=>$vo['nickname']))}" class="btn btn-primary btn-sm" ><i class="fa fa-plus-circle"></i> 查看编辑简历</a>
                                    </notempty>
                                </td>
                            </tr>

                        </volist>
                    </empty>
                    </tbody>
                </table>
                <center><div style="display:inline-block">{$show}</div></center>
            </div>
        </div>
        <!-- END admin-main-content -->
    </div>
    <!-- END admin-main-->
</block>

<block name="area_footer">

</block>
